put
Adds a new attribute with the given name and value.
If an attribute with the given name is already specified, its value will be replaced with the new one.
Parameters
name
the name of the attribute to add or alter
value
value to set in string form. Can be empty for boolean attribute names which are always true despite the attribute value
Throws
when name is empty or blank
when the element is closed